<template>
  <div id="app">
    <xf-button type="primary" @click="isShow">展示</xf-button>
    <XfDialog width="30%" top="20vh" :visible="visible" @update:visable="fn2">
      <template v-slot:title>
        <h5>我是标题</h5>
      </template>
      <div class="contain">
        我是内容
      </div>
      <template v-slot:footer>
        <xf-button type="primary" @click="isShow">确定</xf-button>
      </template>
    </XfDialog>
  </div>
</template>

<script>

export default {
  name: 'App',
  data(){
    return{
      visible:false
    }
  },
  methods:{
    fn(){
      alert('1111')
    },
    isShow(){
      this.visible = !this.visible
    },
    fn2(e){
      this.visible = e
    }
  }
}
</script>

<style lang="scss">

</style>
